package com.smmisia.shop.exception;

import com.smmisia.common.exception.ErrorCode;

public enum BusinessErrorCode implements ErrorCode {

    BUSINESS_SAVA_FAILED("BUSINESS_SAVA_FAILED", "商家保存失败"),
    BUSINESS_UPDATE_FAILED("BUSINESS_UPDATE_FAILED", "商家保存失败"),
    BUSINESS_EXISTED("BUSINESS_EXISTED", "商家已存在"),
    BUSINESS_NOT_EXISTED("BUSINESS_NOT_EXISTED", "商家不存在"),
    BUSINESS_DELETE_FAILED("BUSINESS_DELETE_FAILED", "商家删除失败"),;

    private String code;

    private String message;

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    BusinessErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
